<%= render :partial => "head", :locals => { :user => @user }%>

<p>你有<%= @friends.size %>个好友可以玩：）</p>

<%= render :partial => "main_nav", :locals => { :user => @user }%>

<div class="float-left margin-bottom-10">
  <div id="form" class="margin-bottom-10" >
    <form action="/rating">
      <select name="gender">
        <option value="gb" <%= gender_selected("gb", params[:gender]) %> >girls & boys</option>
        <option value="gg" <%= gender_selected("gg", params[:gender]) %> > girls & girls </option>
        <option value="bb" <%= gender_selected("bb", params[:gender]) %>> boys & boys </option>
      </select>

      <% (1..10).each do |i|%>
        <input type="radio" name="rating" id="rating" value="<%= i.to_s %>" <%= 'checked="checked"' if i == 6 %> /><%= i.to_s %>
      <% end %>
      <input name="left_friend" id="left_friend" value="<%= @left_friend.uid.to_s %>" type="hidden" />    
      <input name="right_friend" id="right_friend" value="<%= @right_friend.uid.to_s %>" type="hidden" />    
      <input type="submit" class="input-submit" value="评定" />
    </form> 
  </div>

  <div class="clear-both"></div>

  <div id="left-nav" class="float-left margin-bottom-10 gray-box" style="margin-right:10px;width:110px;display:inline-block;">
    <% if @pre_couple %>
      <h2>前一对</h2>
      <%= xn_profile_pic_with_id @pre_couple.first_user_id.to_s , {:linked => "true", :size => "tiny"} %>
      <%= xn_profile_pic_with_id @pre_couple.second_user_id.to_s , {:linked => "true", :size => "tiny"} %>
      <p>平均评分：<%= @pre_couple.rating_avg %></p>
      <p><%= @pre_couple.rating_count %>次投票</p>
      <p>你的评分：<%= params[:last_rating] %></p>
    <% else %>
      欢迎，请选择分数，点击评定
    <% end %>
    <div id="ads">
    </div>
  </div>  
  
  <%= render :partial => "couples", :locals => { :left_friend => @left_friend, :right_friend => @right_friend}%>


</div>

